package com.sen.common.widget.form;

import org.apache.commons.lang.StringUtils;

import com.sen.common.widget.Component;

/**
 * 非控件类型. 只是表示文本内容.
 * 
 * @author sen
 */
public class Content extends Component {

	private String content;

	public Content(String content) {
		super("");
		this.content = content;
	}

	@Override
	public String toHtml() {
		return StringUtils.isEmpty(content) ? StringUtils.EMPTY : content;
	}
}
